<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">区域</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">专营店年度额度</th>
        <th rowspan="2">投放编号</th>
        <th rowspan="2">投放类型</th>
        <th rowspan="2">投放规格</th>
        <th rowspan="2">地址</th>
        <th rowspan="2">合同时间</th>
        <th rowspan="2">合同金额</th>
        <?php foreach ($timeUnitList as $timeK => $timeV): ?>
        <th colspan="7"><?=$timeV['year']==2016 ? '' : $timeV['year'].'年'?><?php echo $timeV['name']; ?></th>
        <?php endforeach ?>
    </tr>
    <tr>
        <?php foreach ($timeUnitList as $timeK => $timeV): ?>
            <?php for ($i=0; $i < 5; $i++) { ?>
        <th>自证照片<?$i+1?></th>
            <?php } ?>
        <th>审核结果</th>
        <th>审核意见</th>
        <?php endforeach ?>
    </tr>
    <?php
    foreach($projectList as $k => $v){
        $procData = isset($procList[$v['procId']]) ? $procList[$v['procId']] : array();
        $storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
        $proItemList = isset($proItemGroupList[$v['id']]) ? $proItemGroupList[$v['id']] : array();
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['yearMoney'];?></td>
        <td><?=$v['id'];?></td>
        <td><?=$v['mediaTypeStr'];?></td>
        <td><?=$v['mediaSize'];?></td>
        <td><?=$v['address'];?></td>
        <td><?=$v['contractStart'];?>到<?=$v['contractEnd'];?></td>
        <td><?=$v['applyMoney'];?></td>
        <?php foreach ($timeUnitList as $timeK => $timeV): ?>
        <?php
        $proItemData = isset($proItemList[$timeV['id']]) ? $proItemList[$timeV['id']] : array();
        $voucher = $proItemData['voucher'] ? array_values($proItemData['voucher']) : array();
        ?>
            <?php for ($i=0; $i < 5; $i++) { ?>
            <td>
            <?php if (isset($voucher[$i])) { ?>
            <?php /*?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/';?><?php echo printUrl('Upload','download',array('fileId'=>$voucher[$i]['id']));?>" target="_blank">下载</a>
            <?php */?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$voucher[$i]['viewPath'];?>" target="_blank">下载</a>
            <?php } ?>
            </td>
            <?php } ?>
        <td><?=isset($proItemData['auditRsStr']) ? $proItemData['auditRsStr'] : ''?></td>
        <td><?=isset($proItemData['auditRemark']) ? $proItemData['auditRemark'] : ''?></td>
        <?php endforeach ?>
    </tr>
    <?php }?>
</table>